#include <stdio.h>
int main()
{
	int sum,n;
	for(;;)
	{
		scanf("%d",&n);
		if(n==0) 
		break;
		sum=sum+n;
	}
	printf("sum=%d",sum);
	return 0;
}
